﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AbpEntityFrameworkcore.Migrations
{
    /// <inheritdoc />
    public partial class _2024511 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "Zaxis",
                table: "WarehouseLine",
                type: "int",
                nullable: false,
                comment: "高",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "列");

            migrationBuilder.AlterColumn<int>(
                name: "Yaxis",
                table: "WarehouseLine",
                type: "int",
                nullable: false,
                comment: "列",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "高");

            migrationBuilder.AlterColumn<bool>(
                name: "IsEnable",
                table: "WarehouseLine",
                type: "bit",
                nullable: false,
                comment: "是否使用",
                oldClrType: typeof(bool),
                oldType: "bit",
                oldComment: "是否使能");

            migrationBuilder.AlterColumn<int>(
                name: "Zaxis",
                table: "Warehouse",
                type: "int",
                nullable: false,
                comment: "高",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "列");

            migrationBuilder.AlterColumn<int>(
                name: "Yaxis",
                table: "Warehouse",
                type: "int",
                nullable: false,
                comment: "列",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "高");

            migrationBuilder.AddColumn<string>(
                name: "Type",
                table: "Warehouse",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                comment: "类型");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Type",
                table: "Warehouse");

            migrationBuilder.AlterColumn<int>(
                name: "Zaxis",
                table: "WarehouseLine",
                type: "int",
                nullable: false,
                comment: "列",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "高");

            migrationBuilder.AlterColumn<int>(
                name: "Yaxis",
                table: "WarehouseLine",
                type: "int",
                nullable: false,
                comment: "高",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "列");

            migrationBuilder.AlterColumn<bool>(
                name: "IsEnable",
                table: "WarehouseLine",
                type: "bit",
                nullable: false,
                comment: "是否使能",
                oldClrType: typeof(bool),
                oldType: "bit",
                oldComment: "是否使用");

            migrationBuilder.AlterColumn<int>(
                name: "Zaxis",
                table: "Warehouse",
                type: "int",
                nullable: false,
                comment: "列",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "高");

            migrationBuilder.AlterColumn<int>(
                name: "Yaxis",
                table: "Warehouse",
                type: "int",
                nullable: false,
                comment: "高",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "列");
        }
    }
}
